//
//  MyDocument.h
//  WebClipper
//
//  Created by Daniel Braun on 21/02/07.
//  CopyrightDaniel Braun http://page-appart.net, http://braun.daniel.free.fr  2007 . All rights reserved.
//


#import <Cocoa/Cocoa.h>

@class WebView;
@class DOMHTMLElement;
@class WebExtractionPath;
@class WCWebExtractSet;

@class WCWebFetchController;
@protocol WCWebLoadProtocol;
@class WCWebExtractSet;
@class WCExtractSetArray;

@interface MyDocument : NSDocument
{
	
	IBOutlet WCWebFetchController *webController;
	//NSMutableArray *esets; //Array of WCWebExtractSet
	WCExtractSetArray *esets;

	IBOutlet NSArrayController *itemCtrl;
	IBOutlet NSArrayController *esetController;
	BOOL loadedEsets;
}

- (NSMutableArray*)esets;
- (WCExtractSetArray*)_esets;
- (void) setEsets:(NSArray *)e;
- (void) addExtractionSet:(WCWebExtractSet *)es;
- (void) _processAndLoadNext:(NSObject <WCWebLoadProtocol> *)ctrler private:p;

- (void) curpathUpdated;
@end

